/*
 * DbStore.cpp
 *
 *  Created on: 2018年3月5日
 *      Author: zhengboyuan
 */

#include "DbStore.h"
#include "TStringUtil.h"
#include "SqlCondition.h"
#include "TSafeStr.h"
#include "TStlUtil.h"
#include "AppConst.h"
#include <map>
#include "DateTime.h"
#include "UrlPath.h"
#include "Path.h"


typedef std::pair< int, std::string >	IntString;


template < >
bool fromRow(IntString& obj, db::DbRow& r)
{
	size_t pos = 0;
	r.get(pos++, obj.first);
	r.get(pos++, obj.second);
	return true;
}

DbStore::DbStore(db::DbConnectionPoolPtr dbPool)
{
	setDb(dbPool);
}

DbStore::~DbStore()
{
}

void DbStore::setDb(db::DbConnectionPoolPtr dbPool)
{
    m_dbPool = dbPool;
}
